【机器视觉】 dev

您所在的位置:网站首页 spring green是什么意思 【机器视觉】 dev

【机器视觉】 dev

2024-07-13 12:23:23| 来源: 网络整理| 查看: 265

00. 目录

文章目录 00. 目录01. 概述02. 签名03. 描述04. 注意05. 参数06. 结果07. 附录

01. 概述

dev_set_color - 设置一个或多个(窗口)输出颜色。

02. 签名

dev_set_color( : : ColorName : )

03. 描述

dev_set_color定义用于在图形窗口中显示region,XLD和其他geometrical对象的颜色。 可用的颜色可以通过算子query_color查询。 另外,ColorName可以被指定为’#rrggbb’形式的RGB三元组,其中’rr’,'gg’和’bb’分别是’00’和’ff’之间的十六进制数字。

有关更多信息,请参阅算子set_color的说明。 但是,与算子set_color相反,此算子颜色设置也用于之后打开的所有新图形窗口。

这些颜色设置一直保持有效,直到调用dev_set_color或dev_set_colored,或直到交互式修改颜色设置。 在这里插入图片描述

原文描述:

dev_set_color defines the color(s) that are used to display regions, XLDs, and other geometrical objects in the graphics windows. The available colors can be queried with the operator query_color. In addition, the ColorName may be specified as hexadecimal RGB triplet or RGBA quadruplet in the form ‘#rrggbb’ and ‘#rrggbbaa’. ‘rr’, ‘gg’, ‘bb’, and ‘aa’ are hexadecimal numbers between ‘00’ and ‘ff’, respectively. ‘aa’ denotes the alpha value of a color and can be used to display transparent regions.

For more information see the description of the operator set_color. However, in contrast to that operator the color setting is also used for all new graphics windows that are opened afterwards.

These color settings remain valid until dev_set_color or dev_set_colored is called or until the color settings are modified interactively.

04. 注意

使用HDevelop的代码导出功能,为该算子生成的代码可能与相关的HALCON算子具有不同的行为。 有关将HDevelop图形算子导出为不同编程语言的代码的详细说明,请参阅“HDevelop User’s Guide”中的 Code Export -> General Aspects of Code Generation -> Graphics Windows一章。

05. 参数

ColorName (input_control) string(-array) → (string)   Output color names.   Default value: ‘white’   Suggested values: ‘white’, ‘black’, ‘gray’, ‘red’, ‘green’, ‘blue’, ‘#003075’, ‘#e53019’, ‘#ffb529’

HDevelop例程

label_word_process_mlp.hdev Read a best-before label using a MLP-based OCR classifier and a lexicon to improve results display_operators.hdev Visualize results close_contour_gaps.hdev Close gaps in extracted straight contours clip.hdev Determine the position and orientation of clips advanced_visualization_settings.hdev Improve the visualization with transparency, anti-aliasing, and more

程序示例

read_image(Image,'mreut') dev_set_draw('fill') dev_set_color('red') threshold(Image,Region,180,255) dev_set_color('green') threshold(Image,Region,0,179) 06. 结果

如果指定参数的值正确,则dev_set_color返回2(H_MSG_TRUE)。 否则会引发异常并返回错误代码。

07. 附录

7.1 机器视觉博客汇总 网址:https://dengjin.blog.csdn.net/article/details/116837497



【本文地址】

公司简介

联系我们

今日新闻


点击排行

实验室常用的仪器、试剂和
说到实验室常用到的东西,主要就分为仪器、试剂和耗
不用再找了,全球10大实验
01、赛默飞世尔科技(热电)Thermo Fisher Scientif
三代水柜的量产巅峰T-72坦
作者:寞寒最近,西边闹腾挺大,本来小寞以为忙完这
通风柜跟实验室通风系统有
说到通风柜跟实验室通风,不少人都纠结二者到底是不
集消毒杀菌、烘干收纳为一
厨房是家里细菌较多的地方,潮湿的环境、没有完全密
实验室设备之全钢实验台如
全钢实验台是实验室家具中较为重要的家具之一,很多

推荐新闻


图片新闻

实验室药品柜的特性有哪些
实验室药品柜是实验室家具的重要组成部分之一,主要
小学科学实验中有哪些教学
计算机 计算器 一般 打孔器 打气筒 仪器车 显微镜
实验室各种仪器原理动图讲
1.紫外分光光谱UV分析原理:吸收紫外光能量,引起分
高中化学常见仪器及实验装
1、可加热仪器:2、计量仪器:(1)仪器A的名称:量
微生物操作主要设备和器具
今天盘点一下微生物操作主要设备和器具,别嫌我啰嗦
浅谈通风柜使用基本常识
 众所周知,通风柜功能中最主要的就是排气功能。在

专题文章

    CopyRight 2018-2019 实验室设备网 版权所有 win10的实时保护怎么永久关闭